BLD: bump version number so it sorts ahead of 2.0.0#210
Merged
mattip merged 3 commits intopython-cffi:mainfrom Dec 1, 2025
Merged
BLD: bump version number so it sorts ahead of 2.0.0#210mattip merged 3 commits intopython-cffi:mainfrom
mattip merged 3 commits intopython-cffi:mainfrom
Conversation
mattip
reviewed
Nov 3, 2025
Contributor
mattip
left a comment
There was a problem hiding this comment.
This makes sense. I wonder if there could be a follow-up PR to somehow reduce the number of places the version is specified.
src/cffi/__init__.py
Outdated
|
|
||
| __version__ = "2.0.0.dev0" | ||
| __version__ = "2.0.1.dev0" | ||
| __version_info__ = (2, 0, 0, 'dev0') |
Contributor
There was a problem hiding this comment.
Suggested change
| __version_info__ = (2, 0, 0, 'dev0') | |
| __version_info__ = (2, 0, 1, 'dev0') |
Contributor
Author
There was a problem hiding this comment.
I ended up just doing it. I started to to tuple(__version__.split('.')) but then realized I would have to do the str -> int mapping in 3 of the 4 cases and went back to hard coding it.
Contributor
|
This makes sense. I wonder if there could be a follow-up PR to somehow reduce the number of places the version is specified.
There is a test, "test_version.py" I think, which should check that
all version numbers everywhere are consistent.
|
Contributor
|
Thanks @tacaswell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Otherwise when installing
cryptographypip will try to downgrade cffi to the version on pypi from the development version.